package com.attendancesystem.model;



public class Student {
    private String id;         // 学号
    private String name;       // 姓名
    private String password;   // 密码
    private String college;    // 学院
    private String className;  // 班级（避免与class关键字冲突）

    // 构造方法
    public Student() {}

    public Student(String id, String name, String password,
                   String college, String className) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.college = college;
        this.className = className;
    }

    // Getter & Setter
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getCollege() { return college; }
    public void setCollege(String college) { this.college = college; }

    public String getClassName() { return className; }
    public void setClassName(String className) { this.className = className; }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", college='" + college + '\'' +
                ", className='" + className + '\'' +
                '}';
    }
}

